#ifndef _EASYWEBSERVER_H_
#define _EASYWEBSERVER_H_

#include "epollE.h"
#include "socketE.h"
#include "memory"
#include "connector.h"
#include "Logger.h"
#include "sys/signalfd.h"
#include "signal.h"
#include "singleton.h"
#include "task.h"
#include "tsList.h"
#include "dispatcher.h"
#include "threadPool.h"
#include "Json.h"

namespace easyWebServer
{

class Server
{
public:
    Server() = delete;
    Server(const string & ip, const uint16_t port);
    ~Server();

    void initServer();
    void start();

private:
    int m_signalfd = -1;
    bool m_isStop = false;
};

}

#endif